package com.songlanyun.modules.order.model.importvo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import lombok.Data;

import java.math.BigDecimal;

@ExcelTarget("orderImportVo")
@Data
public class OrderImportVo {

    @Excel(name = "订单号",orderNum = "1",width = 15D)
    private String orderCode;

    @Excel(name = "支付订单号",orderNum = "2",width = 15D)
    private String payOrderCode;

    @Excel(name = "店铺名称",orderNum = "3",width = 20D)
    private String shopName;

    @Excel(name = "来源店铺名称",orderNum = "4",width = 20D)
    private String sourceShopName;

    //支付方式（0余额，1微信，2支付宝）
    @Excel(name = "支付方式",orderNum = "5",width = 10D,replace = {"余额_0","微信_1","支付宝_2"})
    private Integer payMode;

    @Excel(name = "实付金额",orderNum = "6",width = 10D)
    private BigDecimal totalAmount;

    @Excel(name = "运费",orderNum = "7",width = 10D)
    private BigDecimal realFreight;

    @Excel(name = "商品总费用",orderNum = "8",width = 10D)
    private BigDecimal goodsAmount;

    @Excel(name = "首单优惠",orderNum = "9",width = 10D)
    private BigDecimal firstOrderReduced;

    @Excel(name = "总优惠",orderNum = "10",width = 10D)
    private BigDecimal totalReduced;


    /**
     * 是否积分兑换订单
     */
    private Boolean exchange;
    /**
     * 兑换订单使用总积分
     */
    private BigDecimal totalPoint;

}
